package cn.sh.ideal.yedis.builder;

/**
 * redis客户端builder
 * @author WYY
 * @Date 2017-11-30
 */
public class RedisBuilder {

    /**
     * 构造redis cluster的builder
     *
     * @param clusters
     * @return
     */
    public static RedisClusterBuilder redisCluster(final String clusters) {
        return new RedisClusterBuilder(clusters);
    }

    /**
     * 构造redis sentinel的builder
     *
     * @param sentinels
     * @param masterName
     * @return
     */
    public static RedisSentinelBuilder redisSentinel(final String sentinels,String masterName) {
        return new RedisSentinelBuilder(sentinels,masterName);
    }

    /**
     * 构造redis standalone的builder
     * @param host
     * @return
     */
    public static RedisStandaloneBuilder redisStandalone(final String host) {
        return new RedisStandaloneBuilder(host);
    }
}
